package com.hl.sfzy.mapper.content.knowlege;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hl.sfzy.entity.content.Knowlege;


@Mapper
@Repository
public interface KnowlegeMapper {
   
    
    List<Knowlege> findByAll();
    Knowlege findById(Long id);
    List<Knowlege> findByName(String knowlegeName);

    int saveOne(Knowlege knowlege);

    int updateOne(Knowlege knowlege);

    int deleteOne(Long id);

    List<Knowlege> search(@Param("keyword") String keyword, @Param("startTime") LocalDateTime startDate, @Param("endTime")LocalDateTime endDate);
}
